package com.lanxin.controller;

import com.lanxin.vo.ResponseBean;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.apache.shiro.authz.annotation.RequiresUser;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by cyh on 2021/3/18.
 */
@RestController
@RequestMapping("user")
public class UserController {

    @RequiresPermissions("user:select")
    @RequestMapping("select")
    public ResponseBean select(){
        return new ResponseBean(200,"用户查询");
    }

    @RequiresPermissions("user:update")
    @RequestMapping("update")
    public ResponseBean update(){
        return new ResponseBean(200,"用户修改");
    }

    @RequiresPermissions("user:delete")
    @RequestMapping("delete")
    public ResponseBean delete(){
        return new ResponseBean(200,"用户删除");
    }
}
